package cn.duwey.scs.service.user;

import cn.duwey.scs.common.ScsCommonConfig;
import cn.duwey.scs.common.base.BaseRepositoryImpl;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCircuitBreaker
@EnableDiscoveryClient
@EnableJpaRepositories(repositoryBaseClass = BaseRepositoryImpl.class)
@EnableTransactionManagement
@SpringBootApplication(scanBasePackageClasses = {UserServiceApplication.class,
                                                 ScsCommonConfig.class})
public class UserServiceApplication {

    public static void main(String[] args) {

        new SpringApplicationBuilder(UserServiceApplication.class).run(args);
    }

}
